package com.github.shiqiyue.app.common.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/***
 *
 * @author wenyao.wu
 */
@Data
@Accessors(chain = true)
public abstract class BaseEntity implements Serializable {


    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField(fill = FieldFill.INSERT)
    private Date addDate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date editDate;


}
